<%@ include file="confHeader.jsp" %>

<table style="margin-left:115px; margin-top:0px;" cellpadding="0" cellspacing="0" width="400" class="txt-cabecalho" >
  <tr>
    <td colspan="3">
    <table  class="txt-cabecalho">
 	 		<tr><td> 	<img src='${contexto}/pages/images/usuario.jpg' > </td>
 	 		 <td><bean:message key="user.login"/>: ${el:write('userAuthKey.login',pageContext)}<br>
 	 	</td></tr>	</table>  
    </td>
    
  </tr>
  <tr>	
  	<td colspan="3">
    <table class="txt-cabecalho">
 	 		<tr><td> 	<img src='${contexto}/pages/images/privilegio.gif' > </td>
 	 		 <td><bean:message key="app.role"/>: ${el:write('userAuthKey.role.role',pageContext)}
 	 	</td></tr>	</table>  
    </td> 
  </tr>
  
  <tr>
  	 <td>  	 	
  	 	<table  class="txt-cabecalho">
 	 		<tr><td> <img src='${contexto}/pages/images/ip_ico.gif' > </td>
 	 		 <td><bean:message key="app.ip"/>: <%= request.getRemoteAddr() %></td></tr>	</table>  	 
  	  </td>
 	<td>  	 	
  	 	<table  class="txt-cabecalho">
 	 		<tr><td> <a onclick="javascript:window.open('<html:rewrite page="/logout.do" />','_self');" > <img src='${contexto}/pages/images/login.jpg'  > </a></td>
 	 		 <td><html:link action="logout"  ><bean:message key="app.forward.new.login"/></html:link></td></tr>	</table>  	 
  	  </td> 
 	 
 	 
 	 <td> 
 	 		 <table  class="txt-cabecalho"  cellpadding="0" cellspacing="0">
 	 		<tr><td> <a href="javascript:fechar(FecharForm);"  > <img src='${contexto}/pages/images/fechar_x.gif'  > </a></td>
 	 		<td>
 	 		<a href="javascript:fechar(FecharForm);"  >  <bean:message key="app.button.logout" /> </a> </td></tr>
 	 	</table> 
 	 </td>
  </tr>
  <form name="FecharForm"  action='${contexto}/logout.do' onsubmit="fechar(this);" >
  </form>
</table>
<script type="text/javascript" >
//<!--

 function fechar(form){ 	 		
 		form.submit();
 		if(window.name == 'MAIN_WINDOW'){
	  		window.close();
  		}
 }
 
//-->
</script>

